#ifndef _TIMER_H
#define _TIMER_H
#define PRESCAL_MSK (0XFF)
#define MUX_MSK (0xf)
void Timer0Init(void);
void Timer0Test(void);
void Timer0IntInit(void);

void TimerInit(unsigned int TimerId,
                unsigned int Prescaler, unsigned int Divider,
                 unsigned int CountBuf, unsigned int CmpBuf);
void TimerManUp(unsigned int TimerId,unsigned char Ture);
void TimerAutoLoad(unsigned int TimerId,unsigned char Ture);
void TimerStart(unsigned int TimerId,unsigned char Ture);
unsigned char TimerWaitFinish(unsigned int TimerId);
void TimerTest(void);
#endif
